class Timer {
  int startTime, targetTime;
  
  Timer(int time) {
    this.targetTime = time;
  }
  
  void start() {
    this.startTime = millis(); 
  }
  
  boolean isFinished() { 
    int passedTime = millis() - this.startTime;
    return passedTime > this.targetTime;
  }
}
